import request from '../utils/request'

export const findStudentList=(current,size,studentsVO)=>{
    return request({
        url: "/System/students/findStudentPage",
        method: 'post',
        params: {
            current,
            size
        },
        data: studentsVO
    })
}

export const saveStudent=(students)=>{
    return request({
        url: "/System/students/addStudent",
        method: 'post',
        data: students
    })
}

export const deleteStudent=(id)=>{
    return request({
        url: "/System/students/delete/"+id,
        method: 'delete',
        data: id
    })
}

export const editStudent=(id)=>{
    return request({
        url: "/System/students/edit/"+id,
        method: 'get',
        data: id
    })
}